﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
using System.Windows.Media.Animation;

namespace Gronia.WPF.Controls
{
    public partial class PageTransition : Control
    {
        #region TransitionType
        public static readonly DependencyProperty TransitionTypeProperty = DependencyProperty.Register("TransitionType", typeof(PageTransitionType), typeof(PageTransition), new PropertyMetadata(PageTransitionType.SlideAndFade));
        public PageTransitionType TransitionType
        {
            get
            {
                return (PageTransitionType)GetValue(TransitionTypeProperty);
            }
            set
            {
                SetValue(TransitionTypeProperty, value);
            }
        }
        #endregion

        #region Content
        public static readonly DependencyProperty ContentProperty = DependencyProperty.Register("Content", typeof(UserControl), typeof(PageTransition), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.None));
        public UserControl Content
        {
            get { return (UserControl)GetValue(ContentProperty); }
            set { SetValue(ContentProperty, value); }
        }
        #endregion
    }
}